﻿<%@ Page Language="C#" MasterPageFile="~/MasterPage.Master" AutoEventWireup="true" CodeBehind="AddService.aspx.cs" Inherits="SD.UI.AddService" Title="Untitled Page" %>

<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="asp" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
    <title>Services</title>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <div>
        <table width="100%">
            <tr>
                <td>
                    <h1>Service Details</h1>
                </td>
                <td style="float:right">
                    <asp:Button ID="btnInActive" runat="server" Text="In-Active" Visible="false" CssClass="Button"/>
                    <asp:Button ID="btnSave" runat="server" Text="Save" CssClass="Button" />
                    <asp:Button ID="btnBack" runat="server" Text="Back" CssClass="Button" 
                        CausesValidation="False" onclick="btnBack_Click"/>
                </td>
            </tr>
        </table>
    </div>
    <div>
        <asp:ToolkitScriptManager ID="ToolkitScriptManager1" runat="server">
        </asp:ToolkitScriptManager>
        <asp:UpdatePanel ID="udp" runat="server" UpdateMode="Always">
            <ContentTemplate>
                <asp:TabContainer ID="TabContainer1" runat="server" ActiveTabIndex="0">
                <asp:TabPanel ID="Detail1Tab" runat="server" Width="100%" HeaderText="Detail 1">
                    <ContentTemplate>
                        <asp:UpdatePanel ID="updatePanel1" runat="server">
                            <ContentTemplate>
                                <asp:Panel ID="PanelDetail1" runat="server" GroupingText=" ">
                                    <table width="100%">
                                        <tr>
                                            <td>
                                                <asp:Label ID="lbServiceName" runat="server" Text="Service Name">
                                                </asp:Label>
                                                <asp:Label ID="lbRequirementServicename" runat="server" Text="*" ForeColor="Red">
                                                </asp:Label>
                                            </td>
                                            <td>
                                                <asp:TextBox ID="txtServiceName" runat="server" Width="250px">
                                                </asp:TextBox>
                                            </td>
                                            <td>
                                                <asp:Label ID="lbServiceActive" runat="server" Text="Service Active">
                                                </asp:Label>
                                            </td>
                                            <td>
                                                <asp:CheckBox ID="chkServiceActive" runat="server" Enabled="false" Checked="true"/>
                                            </td>
                                        </tr>
                                        <tr>
                                            <td>
                                                <asp:Label ID="lbServiceShortDes" runat="server" Text="Service Short Description">
                                                </asp:Label>
                                                <asp:Label ID="lbRequirementServiceShortDes" runat="server" Text="*" ForeColor="Red">
                                                </asp:Label>
                                            </td>
                                            <td>
                                                <asp:TextBox ID="txtServiceShortDes" runat="server" TextMode="MultiLine" Width="250px">
                                                </asp:TextBox>
                                            </td>
                                            <td>
                                                <asp:Label ID="lbServiceFullDes" runat="server" Text="Service Full Description">
                                                </asp:Label>    
                                            </td>
                                            <td>
                                                <asp:TextBox ID="txtServiceFullDes" runat="server" TextMode="MultiLine" Width="250px">
                                                </asp:TextBox>
                                            </td>
                                        </tr>
                                        <tr>
                                            <td>
                                                <asp:Label ID="lbSubType" runat="server" Text="Sub Type">
                                                </asp:Label>
                                            </td>
                                            <td>
                                                <asp:DropDownList ID="ddlSubType" runat="server" Width="250px" 
                                                    onselectedindexchanged="ddlSubType_SelectedIndexChanged" 
                                                    AutoPostBack="True">
                                                    <asp:ListItem></asp:ListItem>
                                                    <asp:ListItem>Contract</asp:ListItem>
                                                    <asp:ListItem>Funding</asp:ListItem>
                                                </asp:DropDownList>
                                            </td>
                                            <td>
                                                <asp:Label ID="lbDeptCode" runat="server" Text="Dept Code">
                                                </asp:Label>
                                                <asp:Label ID="lbRequirementDeptCode" runat="server" Text="*" ForeColor="Red">
                                                </asp:Label>
                                            </td>
                                            <td>
                                                <asp:TextBox ID="txtDeptCode" runat="server" Width="250px">
                                                </asp:TextBox>
                                            </td>
                                        </tr>
                                        <tr>
                                            <td>
                                                <asp:Label ID="lbLeadContact" runat="server" Text="Lead Contact">
                                                </asp:Label>
                                                <asp:Label ID="lbRequirementLeadContact" runat="server" Text="*" ForeColor="Red">
                                                </asp:Label>
                                            </td>
                                            <td>
                                                <div class="navi">
                                                    <div>
                                                        <asp:TextBox ID="txtLeadContact" runat="server" Enabled="false" Width="250px">
                                                        </asp:TextBox>
                                                    </div>
                                                    <div>
                                                        <asp:LinkButton ID="linkLeadContact" runat="server" Text="Lookup" OnClientClick="ShowLeadContacts()">
                                                        </asp:LinkButton>
                                                    </div>
                                                </div>
                                            </td>
                                            <td>
                                                <asp:Label ID="lbServiceType" runat="server" Text="Service Type">
                                                </asp:Label>
                                                <asp:Label ID="lbRequirementServiceType" runat="server" Text="*" ForeColor="Red">
                                                </asp:Label>
                                            </td>
                                            <td>
                                                <asp:DropDownList ID="ddlServiceType" runat="server" Width="250px">
                                                </asp:DropDownList>
                                            </td>
                                        </tr>
                                        <tr>
                                            <td>
                                                <asp:Label ID="lbClientDes" runat="server" Text="Client Description">
                                                </asp:Label>
                                            </td>
                                            <td>
                                                <asp:TextBox ID="txtClientDes" runat="server" TextMode="MultiLine" Width="250px">
                                                </asp:TextBox>
                                            </td>
                                            <td>
                                                <asp:Label ID="lbServiceDesDelivery" runat="server" Text="Service Descript - Delivery">
                                                </asp:Label>
                                            </td>
                                            <td>
                                                <asp:TextBox ID="txtServiceDesDelivery" runat="server" TextMode="MultiLine" Width="250px">
                                                </asp:TextBox>
                                            </td>
                                        </tr>
                                        <tr>
                                            <td>
                                                <asp:Label ID="lbServiceAttendance" runat="server" Text="Service Attendance">
                                                </asp:Label>
                                            </td>
                                            <td>
                                                <asp:DropDownList ID="ddlServiceAttendance" runat="server" Width="250px">
                                                </asp:DropDownList>
                                            </td>
                                            <td>
                                                <asp:Label ID="lbServiceContactCode" runat="server" Text="Service Contact Code">
                                                </asp:Label>
                                            </td>
                                            <td>
                                                <asp:TextBox ID="txtServiceContactCode" runat="server" Width="250px">
                                                </asp:TextBox>
                                            </td>
                                        </tr>
                                        <tr>
                                            <td>
                                                <asp:Label ID="lbServiceStartExpected" runat="server" Text="Service Start Expected">
                                                </asp:Label>
                                            </td>
                                            <td>
                                                <asp:TextBox ID="txtServiceStartExpected" runat="server" Enabled="false" Width="250px" Text="dd/MM/yyyy">
                                                </asp:TextBox>
                                                <asp:ImageButton ID="imgbuttonServiceStartExpected" runat="server" ImageUrl="~/Image/calendar.png" Height="25px" Width="25" />
                                                <asp:CalendarExtender ID="CalendarExtender6" runat="server" TargetControlID="txtServiceStartExpected" PopupButtonID="imgbuttonServiceStartExpected" Format="dd/MM/yyyy">
                                                </asp:CalendarExtender>
                                            </td>
                                            <td>
                                                <asp:Label ID="lbServiceContactValue" runat="server" Text="Service Contact Value">
                                                </asp:Label>
                                            </td>
                                            <td>
                                                <asp:TextBox ID="txtServiceContactValue" runat="server" Width="250px">
                                                </asp:TextBox>
                                            </td>
                                        </tr>
                                        <tr>
                                            <td>
                                                <asp:Label ID="lbServiceStartDate" runat="server" Text="Service Start Date">
                                                </asp:Label>
                                            </td>
                                            <td>
                                                <asp:TextBox ID="txtServiceStartDate" runat="server" Enabled="false" Width="250px" Text="dd/MM/yyyy">
                                                </asp:TextBox>
                                                <asp:ImageButton ID="imgbuttonServiceStartDate" runat="server" ImageUrl="~/Image/calendar.png" Height="25px" Width="25px" />
                                                <asp:CalendarExtender ID="CalendarExtender8" runat="server" TargetControlID="txtServiceStartDate" PopupButtonID="imgbuttonServiceStartDate" Format="dd/MM/yy">
                                                </asp:CalendarExtender>
                                            </td>
                                            <td>
                                                <asp:Label ID="lbContractStagedPayment" runat="server" Text="Contract Staged Payment">
                                                </asp:Label>
                                            </td>
                                            <td>
                                                <asp:CheckBox ID="chkContractStagedPayment" runat="server" />
                                            </td>
                                        </tr>
                                        <tr>
                                            <td>
                                                <asp:Label ID="lbServiceEndDate" runat="server" Text="Service End Date">
                                                </asp:Label>
                                            </td>
                                            <td>
                                                <asp:TextBox ID="txtServiceEndDate" runat="server" Enabled="false" Width="250px" Text="dd/MM/yyyy">
                                                </asp:TextBox>
                                                <asp:ImageButton ID="imgbuttontxtServiceEndDate" runat="server" ImageUrl="~/Image/calendar.png" Width="25px" Height="25px"/> 
                                                <asp:CalendarExtender ID="CalendarExtender7" runat="server" TargetControlID="txtServiceEndDate" PopupButtonID="imgbuttontxtServiceEndDate" Format="dd/MM/yyyy">
                                                </asp:CalendarExtender>
                                            </td>
                                            <td>
                                                <asp:Label ID="lbRefProcessMethod" runat="server" Text="Referral Process/Method">
                                                </asp:Label>
                                            </td>
                                            <td>
                                                <asp:DropDownList ID="ddlRefProcessMethod" runat="server" Width="250px">
                                                </asp:DropDownList>
                                            </td>
                                        </tr>
                                        <tr>
                                            <td>
                                                <asp:Label ID="lbServiceExtendable" runat="server" Text="Service Extendable">
                                                </asp:Label>
                                            </td>
                                            <td>
                                                <asp:CheckBox ID="chkServiceExtendable" runat="server" />
                                            </td>
                                            <td>
                                                <asp:Label ID="lbServiceTimeLimited" runat="server" Text="Service Time Limited">
                                                </asp:Label>
                                            </td>
                                            <td>
                                                <asp:CheckBox ID="chkServiceTimeLimited" runat="server" />
                                            </td>
                                        </tr>
                                        <tr>
                                            <td>
                                                <asp:TextBox ID="txtYearServiceExtended" runat="server" Enabled="false">
                                                </asp:TextBox>
                                                <asp:NumericUpDownExtender ID="numberddlYearServiceExtended" runat="server" TargetControlID="txtYearServiceExtended" Minimum="0" Width="50">
                                                </asp:NumericUpDownExtender>
                                                <asp:Label ID="lbYearsServiceExtended" runat="server" Text="Years">
                                                </asp:Label>
                                            </td>
                                            <td>
                                                <asp:TextBox ID="txtMonthServiceServiceExtended" runat="server" Enabled="false">
                                                </asp:TextBox>                             
                                                <asp:NumericUpDownExtender ID="numberddlMonthServiceServiceExtended" runat="server" TargetControlID="txtMonthServiceServiceExtended" Maximum="12" Minimum="0" Width="50">
                                                </asp:NumericUpDownExtender>
                                                <asp:Label ID="lbMonthsServiceExtended" runat="server" Text="Months">
                                                </asp:Label>
                                            </td>
                                            <td>
                                                <asp:TextBox ID="txtYearServiceServiceLimited" runat="server" Enabled="false" Width="50px">
                                                </asp:TextBox>
                                                <asp:NumericUpDownExtender ID="numberddlYearServiceServiceLimited" runat="server" TargetControlID="txtYearServiceServiceLimited" Minimum="0" Width="50">
                                                </asp:NumericUpDownExtender>
                                                <asp:Label ID="lbYearsServiceLimited" runat="server" Text="Years">
                                                </asp:Label>
                                            </td>
                                            <td>
                                                <asp:TextBox ID="txtMonthServiceServiceLimited" runat="server" Enabled="false">
                                                </asp:TextBox>
                                                <asp:NumericUpDownExtender ID="numberddlMonthServiceServiceLimited" runat="server" TargetControlID="txtMonthServiceServiceLimited" Maximum="12" Minimum="0" Width="50" EnableViewState="false">
                                                </asp:NumericUpDownExtender>
                                                <asp:Label ID="lbMonthsServiceLimited" runat="server" Text="Years">
                                                </asp:Label>
                                            </td>
                                        </tr>
                                    </table>
                                </asp:Panel>
                            </ContentTemplate>
                        </asp:UpdatePanel>
                    </ContentTemplate>
                </asp:TabPanel>
                <asp:TabPanel ID="Detail2Tab" runat="server" HeaderText="Detail 2" Width="100%">
                    <ContentTemplate>
                        <asp:UpdatePanel ID="UpdatePanel2" runat="server" >
                            <ContentTemplate>
                                <div>
                                    <asp:Panel ID="PanelDetail2" runat="server" GroupingText=" ">
                                        <table width="100%">
                                            <tr>
                                                <td>
                                                    <asp:Label ID="lbSerBeneCriterion" runat="server" Text="Service Benefits Criterion">
                                                    </asp:Label>
                                                </td>
                                                <td>
                                                    <asp:ListBox ID="listboxSerBeneCriterion" runat="server" Width="250px">
                                                    </asp:ListBox>
                                                </td>
                                                <td>
                                                    <asp:Label ID="lbSerDisCriterion" runat="server" Text="Service Disable Criterion">
                                                    </asp:Label>
                                                </td>
                                                <td>
                                                    <asp:ListBox ID="listSerDisCriterion" runat="server" Width="250px">
                                                    </asp:ListBox>
                                                </td>
                                            </tr>
                                            <tr>
                                                <td>
                                                    <asp:Label ID="lbSerBarrCriterion" runat="server" Text="Service Barriers Criterion">
                                                    </asp:Label>
                                                </td>
                                                <td>
                                                    <asp:TextBox ID="txtSerBarrCriterion" runat="server" Width="250px">
                                                    </asp:TextBox>
                                                </td>
                                                <td>
                                                    <asp:Label ID="lbSerPerCirCriterion" runat="server" Text="Service Personal Circumstances Criterion">
                                                    </asp:Label>
                                                </td>
                                                <td>
                                                    <asp:ListBox ID="listSerPerCirCriterion" runat="server" Width="250px">
                                                    </asp:ListBox>
                                                </td>
                                            </tr>
                                            <tr>
                                                <td>
                                                    <asp:Label ID="lbSerEthCriterion" runat="server" Text="Service Ethnicity Criterion">
                                                    </asp:Label>
                                                </td>
                                                <td>
                                                    <asp:ListBox ID="listSetEthCriterion" runat="server" Width="250px">
                                                    </asp:ListBox>
                                                </td>
                                                <td>
                                                    <asp:Label ID="lbOthSerParCriterion" runat="server" Text="Other Service Participation Criterion">
                                                    </asp:Label>
                                                </td>
                                                <td>
                                                    <asp:ListBox ID="listOthSerParCriterion" runat="server" Width="250px">
                                                    </asp:ListBox>
                                                </td>
                                            </tr>
                                        </table>
                                    </asp:Panel>
                                </div>
                            </ContentTemplate>
                        </asp:UpdatePanel>
                    </ContentTemplate>
                </asp:TabPanel>
                <asp:TabPanel ID="Detail3Tab" runat="server" HeaderText="Detail 3" Width="100%">
                    <ContentTemplate>
                        <asp:UpdatePanel ID="updatePanelDetail3" runat="server">
                            <ContentTemplate>
                                <div>
                                    <asp:Panel ID="PanelDetail3" runat="server" GroupingText="">
                                        <table width="100%">
                                            <tr>
                                                <td>
                                                    <asp:Label ID="lbClientSupportProcess" runat="server" Text="Client Support Process">
                                                    </asp:Label>
                                                </td>
                                                <td>
                                                    <asp:ListBox ID="listClientSupportProcess" runat="server" Width="250px">
                                                    </asp:ListBox>
                                                </td>
                                                <td>
                                                    <asp:Label ID="lbClientOutcome" runat="server" Text="Client Outcome">
                                                    </asp:Label>
                                                </td>
                                                <td>
                                                    <asp:ListBox ID="listClientOutcome" runat="server" Width="250">
                                                    </asp:ListBox>
                                                </td>
                                            </tr>
                                            <tr>
                                                <td>
                                                    <asp:Label ID="lbIntervention" runat="server" Text="Intervention">
                                                    </asp:Label>
                                                </td>
                                                <td>
                                                    <asp:ListBox ID="listIntervention" runat="server" Width="250">
                                                    </asp:ListBox>
                                                </td>
                                                <td>
                                                    <asp:Label ID="lbTargetClient" runat="server" Text="Target Client">
                                                    </asp:Label>
                                                </td>
                                                <td>
                                                    <asp:ListBox ID="listTargetClient" runat="server" Width="250px">
                                                    </asp:ListBox>
                                                </td>
                                            </tr>
                                            <tr>
                                                <td>
                                                    <asp:Label ID="lbClientJourney" runat="server" Text="Client Journey">
                                                    </asp:Label>
                                                </td>
                                                <td>
                                                    <asp:ListBox ID="listClientJourney" runat="server" Width="250px">
                                                    </asp:ListBox>
                                                </td>
                                                <td>
                                                    <asp:Label ID="lbAccreditations" runat="server" Text="Accreditions">
                                                    </asp:Label>
                                                </td>
                                                <td>
                                                    <asp:ListBox ID="listAccreditations" runat="server" Width="250px">
                                                    </asp:ListBox>
                                                </td>
                                            </tr>
                                            <tr>
                                                <td>
                                                    <asp:Label ID="lbOtherService" runat="server" Text="Other Service">
                                                    </asp:Label>
                                                </td>
                                                <td>
                                                    <asp:ListBox ID="listOtherService" runat="server" Width="250px">
                                                    </asp:ListBox>
                                                </td>
                                                <td>
                                                    <asp:Label ID="lbReferralSource" runat="server" Width="250px" Text="Referral Source">
                                                    </asp:Label>
                                                </td>
                                                <td>
                                                    <asp:ListBox ID="listReferralSource" runat="server" Width="250px">
                                                    </asp:ListBox>
                                                </td>
                                            </tr>
                                            <tr>
                                                <td>
                                                    <asp:Label ID="lbSupportCentres" runat="server" Text="Support Centres">
                                                    </asp:Label>
                                                </td>
                                                <td>
                                                    <asp:ListBox ID="listSupportCentres" runat="server" Width="250">
                                                    </asp:ListBox>
                                                </td>
                                                <td>
                                                    <asp:Label ID="lbProgramme" runat="server" Text="Programme">
                                                    </asp:Label>
                                                </td>
                                                <td>
                                                    <asp:DropDownList ID="ddlProgramme" runat="server" Width="250px">
                                                    </asp:DropDownList>
                                                </td>
                                            </tr>
                                        </table>
                                    </asp:Panel>
                                </div>
                            </ContentTemplate>
                        </asp:UpdatePanel>
                    </ContentTemplate>
                </asp:TabPanel>
                <asp:TabPanel ID="OrganizationsTab" runat="server" HeaderText="Organizations" Visible="false">
                    <ContentTemplate>
                        <asp:UpdatePanel ID="updatePanelOrganizations" runat="server">
                            <ContentTemplate>
                                <asp:Panel ID="PanelOrganizations" runat="server">
                                    <asp:GridView ID="gvOrganizations" runat="server" AutoGenerateColumns="False" 
                                        BackColor="White" BorderColor="#E7E7FF" BorderStyle="None" BorderWidth="1px" 
                                        CellPadding="3" GridLines="Horizontal" PageSize="15" Width="100%">
                                        <RowStyle BackColor="#E7E7FF" ForeColor="#4A3C8C" />
                                        <Columns>
                                            <asp:BoundField HeaderText="Organization Name" />
                                            <asp:BoundField HeaderText="Description" />
                                            <asp:BoundField HeaderText="Role" />
                                            <asp:TemplateField>
                                                <ItemTemplate>
                                                    <asp:LinkButton ID="linkEditRole" runat="server" Text="Edit Role"></asp:LinkButton>
                                                </ItemTemplate>
                                            </asp:TemplateField>
                                        </Columns>
                                        <FooterStyle BackColor="#B5C7DE" ForeColor="#4A3C8C" />
                                        <PagerStyle BackColor="#E7E7FF" ForeColor="#4A3C8C" HorizontalAlign="Right" />
                                        <SelectedRowStyle BackColor="#738A9C" Font-Bold="True" ForeColor="#F7F7F7" />
                                        <HeaderStyle BackColor="#4A3C8C" Font-Bold="True" ForeColor="#F7F7F7" />
                                        <AlternatingRowStyle BackColor="#F7F7F7" />
                                    </asp:GridView>
                                </asp:Panel>
                            </ContentTemplate>
                        </asp:UpdatePanel>
                    </ContentTemplate>
                </asp:TabPanel>
                <asp:TabPanel ID="PremisesTab" runat="server" HeaderText="Premises" Visible="false">
                    <ContentTemplate>
                        <asp:UpdatePanel ID="updatepanelPremises" runat="server">
                            <ContentTemplate>
                                <asp:Panel ID="PanelPremises" runat="server">
                                    <asp:GridView ID="gvPremises" runat="server" AutoGenerateColumns="False" 
                                        BackColor="White" BorderColor="#E7E7FF" BorderStyle="None" BorderWidth="1px" 
                                        CellPadding="3" GridLines="Horizontal" Width="100%">
                                        <RowStyle BackColor="#E7E7FF" ForeColor="#4A3C8C" />
                                        <Columns>
                                            <asp:BoundField HeaderText="Premises Name" />
                                            <asp:BoundField HeaderText="Address" />
                                            <asp:BoundField HeaderText="Phone Number" />
                                            <asp:BoundField HeaderText="Project Code" />
                                            <asp:CommandField DeleteText="Remove" ShowDeleteButton="True" />
                                        </Columns>
                                        <FooterStyle BackColor="#B5C7DE" ForeColor="#4A3C8C" />
                                        <PagerStyle BackColor="#E7E7FF" ForeColor="#4A3C8C" HorizontalAlign="Right" />
                                        <SelectedRowStyle BackColor="#738A9C" Font-Bold="True" ForeColor="#F7F7F7" />
                                        <HeaderStyle BackColor="#4A3C8C" Font-Bold="True" ForeColor="#F7F7F7" />
                                        <AlternatingRowStyle BackColor="#F7F7F7" />
                                    </asp:GridView>                            
                                </asp:Panel>
                            </ContentTemplate>
                        </asp:UpdatePanel>
                    </ContentTemplate>
                </asp:TabPanel>
                <asp:TabPanel ID="FundingTab" runat="server" HeaderText="Funding" Visible="false">
                    <ContentTemplate>
                        <asp:UpdatePanel ID="updatepanelFunding" runat="server">
                            <ContentTemplate>
                                <div>
                                    <asp:Panel ID="PanelFunding" runat="server" GroupingText=" ">
                                        <table width="100%">
                                            <tr>
                                                <td colspan="4">
                                                    <asp:Label ID="lbGeneral" runat="server" Text="General" Font-Bold="true">
                                                    </asp:Label>
                                                </td>
                                            </tr>
                                            <tr>
                                                <td>
                                                    <asp:Label ID="lbFundingSource" runat="server" Text="Funding Source">
                                                    </asp:Label>
                                                </td>
                                                <td>
                                                    <asp:DropDownList ID="ddlFundingSource" runat="server" Width="250px">
                                                    </asp:DropDownList>
                                                </td>
                                                <td>
                                                    <asp:Label ID="lbFundingNeeds" runat="server" Text="Funding Needs">
                                                    </asp:Label>
                                                </td>
                                                <td>
                                                    <asp:TextBox ID="txtFundingNeeds" runat="server" Width="250px">
                                                    </asp:TextBox>
                                                </td>
                                            </tr>
                                            <tr>
                                                <td>
                                                    <asp:Label ID="lbFundingContactDetails" runat="server" Text="Funding Contact Details">
                                                    </asp:Label>
                                                    <asp:Label ID="lbRequirementFundingContactDetails" runat="server" Text="*" ForeColor="Red">
                                                    </asp:Label>
                                                </td>
                                                <td>
                                                    <asp:TextBox ID="txtFundingContactDetails" runat="server" Enabled="false" ReadOnly="true" Width="250px">
                                                    </asp:TextBox>
                                                    <asp:LinkButton ID="linkFundingContactDetails" runat="server" Text="Lookup">
                                                    </asp:LinkButton>
                                                </td>
                                                <td>
                                                    <asp:Label ID="lbFundingContinuationNeeded" runat="server" Text="Funding Continuation Needed">
                                                    </asp:Label>
                                                </td>
                                                <td>
                                                    <asp:CheckBox ID="chkFundingContinuationNeeded" runat="server" />
                                                </td>
                                            </tr>
                                            <tr>
                                                <td>
                                                    <asp:Label ID="lbFundingAmount" runat="server" Text="Funding Amount">
                                                    </asp:Label>
                                                    <asp:Label ID="lbRequirementFundingAmount" runat="server" Text="*" ForeColor="Red">
                                                    </asp:Label>
                                                </td>
                                                <td>
                                                    <asp:TextBox ID="txtFundingAmount" runat="server" Width="250px">
                                                    </asp:TextBox>
                                                </td>
                                                <td>
                                                    <asp:Label ID="lbFundingContinuationAmount" runat="server" Text="Funding Continuation Amount">
                                                    </asp:Label>
                                                </td>
                                                <td>
                                                    <asp:TextBox ID="txtFundingContinuationAmount" runat="server" Width="250px" ReadOnly="true" Enabled="false">
                                                    </asp:TextBox>
                                                </td>
                                            </tr>
                                            <tr>
                                                <td>
                                                    <asp:Label ID="lbFundingStart" runat="server" Text="Funding Start">
                                                    </asp:Label>
                                                </td>
                                                <td>
                                                    <asp:TextBox ID="txtFundingStart" runat="server" Width="250px" Enabled="false" ReadOnly="true" Text="dd/MM/yyyy">
                                                    </asp:TextBox>
                                                    <asp:ImageButton ID="imgbutton" runat="server" ImageUrl="~/Image/calendar.png" Width="25px" Height="25px"/>
                                                    <asp:CalendarExtender ID="CalendarExtender1" runat="server" TargetControlID="txtFundingStart" PopupButtonID="imgbutton" Format="dd/MM/yyyy">
                                                    </asp:CalendarExtender>
                                                </td>
                                                <td rowspan="2">
                                                    <asp:Label ID="lbFundingContinuationDetails" runat="server" Text="Funding Continuation Details">
                                                    </asp:Label>
                                                </td>
                                                <td rowspan="2">
                                                    <asp:TextBox ID="txtFundingContinuationDetails" runat="server" Width="250px" Enabled="false" ReadOnly="true" TextMode="MultiLine">
                                                    </asp:TextBox>
                                                </td>
                                            </tr>
                                            <tr>
                                                <td>
                                                      <asp:Label ID="lbFundingEnd" runat="server" Text="Funding End">
                                                      </asp:Label>                                          
                                                </td>
                                                <td>
                                                    <asp:TextBox ID="txtFundingEnd" runat="server" Enabled="false" ReadOnly="true" Width="250px" Text="dd/MM/yyyy">
                                                    </asp:TextBox>
                                                    <asp:ImageButton ID="imgbuttonFundingEnd" runat="server" ImageUrl="~/Image/calendar.png" Width="25px" Height="25px" />
                                                    <asp:CalendarExtender ID="CalendarExtender2" runat="server" TargetControlID="txtFundingEnd" PopupButtonID="imgbuttonFundingEnd" Format="dd/MM/yyyy">
                                                    </asp:CalendarExtender>
                                                </td>
                                            </tr>
                                            <tr>
                                                <td colspan="4">
                                                    <asp:Label ID="lbFundForServiceProject" runat="server" Text="Fundraising For Service Project" Font-Bold="true">
                                                    </asp:Label>
                                                </td>
                                            </tr>
                                            <tr>
                                                <td rowspan="2">
                                                    <asp:Label ID="lbFundraisingForText" runat="server" Text="Fundraising For Text">
                                                    </asp:Label>
                                                </td>
                                                <td rowspan="2">
                                                    <asp:TextBox ID="txtFundraisingForText" runat="server" TextMode="MultiLine" Width="250px">
                                                    </asp:TextBox>
                                                </td>
                                                
                                                <td>
                                                    <asp:Label ID="lbFundraisingNeeds" runat="server" Text="Fundraising Needs">
                                                    </asp:Label>
                                                </td>
                                                <td>
                                                    <asp:TextBox ID="TextBox1" it="txtFundraisingNeeds" runat="server" Width="250px">
                                                    </asp:TextBox>
                                                </td>
                                            </tr>
                                            <tr>
                                                <td>
                                                    <asp:Label ID="lbFundraisingRequiredBy" runat="server" Text="Fundraising Required By">
                                                    </asp:Label>
                                                </td>
                                                <td>
                                                    <asp:TextBox ID="txtFundraisingRequiredBy" runat="server" Width="250px" Enabled="false" ReadOnly="true" Text="dd/MM/yyyy">
                                                    </asp:TextBox>
                                                    <asp:ImageButton ID="imgbuttonFundraisingRequiredBy" runat="server" ImageUrl="~/Image/calendar.png" Width="25px" Height="25px" />
                                                    <asp:CalendarExtender ID="CalendarExtender3" runat="server" TargetControlID="txtFundraisingRequiredBy" PopupButtonID="imgbuttonFundraisingRequiredBy" Format="dd/MM/yyyy">
                                                    </asp:CalendarExtender>
                                                </td>
                                            </tr>
                                            <tr>
                                                <td rowspan="2">
                                                    <asp:Label ID="lbFundraisingWhy" runat="server" Text="Fundraising Why">
                                                    </asp:Label>
                                                </td>
                                                <td rowspan="2">
                                                    <asp:TextBox ID="txtFundraisingWhy" runat="server" TextMode="MultiLine" Width="250px">
                                                    </asp:TextBox>
                                                </td>
                                                <td>
                                                    <asp:Label ID="lbFundraisingComplete" runat="server" Text="Fundraising Complete">
                                                    </asp:Label>
                                                </td>
                                                <td>
                                                    <asp:CheckBox ID="chkFundraisingComplete" runat="server" />
                                                </td>
                                            </tr>
                                            <tr>
                                                <td>
                                                    <asp:Label ID="lbFundraisingCompletedDate" runat="server" Text="Fundraising Completed Date">
                                                    </asp:Label>
                                                </td>
                                                <td>
                                                    <asp:TextBox ID="txtFundraisingCompletedDate" runat="server" Enabled="false" ReadOnly="true" Width="250px" Text="dd/MM/yyyy">
                                                    </asp:TextBox>
                                                    <asp:ImageButton ID="imgbuttonFundraisingCompletedDate" runat="server" ImageUrl="~/Image/calendar.png" Width="25px" Height="25px" Enabled="false"/>
                                                    <asp:CalendarExtender ID="CalendarExtender4" runat="server" TargetControlID="txtFundraisingCompletedDate" PopupButtonID="imgbuttonFundraisingCompletedDate" Format="dd/MM/yyyy">
                                                    </asp:CalendarExtender>
                                                </td>
                                            </tr>
                                            <tr>
                                                <td colspan="4">
                                                    <asp:Label ID="lbFundraisingDonor" runat="server" Text="Fundraising Donor" Font-Bold="true">
                                                    </asp:Label>
                                                </td>
                                            </tr>
                                            <tr>
                                                <td>
                                                    <asp:Label ID="lbFundraisingDonorAnonymous" runat="server" Text="Fundraising Donor Anonymous">
                                                    </asp:Label>
                                                </td>
                                                <td>
                                                    <asp:CheckBox ID="chkFundraisingDonorAnonymous" runat="server" />
                                                </td>
                                                <td>
                                                    <asp:Label ID="lbFundraisingDonationDate" runat="server" Text="Fundraising Donation Date">
                                                    </asp:Label>
                                                </td>
                                                <td>
                                                    <asp:TextBox ID="txtFundraisingDonationDate" runat="server" Width="250px" Enabled="false" ReadOnly="true" Text="dd/MM/yyyy">
                                                    </asp:TextBox>
                                                    <asp:ImageButton ID="imgbuttonFundraisingDonationDate" runat="server" ImageUrl="~/Image/calendar.png" Height="25" Width="25"/>
                                                    
                                                </td>
                                                <asp:CalendarExtender ID="CalendarExtender5" runat="server" TargetControlID="txtFundraisingDonationDate" PopupButtonID="imgbuttonFundraisingDonationDate" Format="dd/MM/yyyy">
                                                </asp:CalendarExtender>
                                            </tr>
                                            <tr>
                                                <td>
                                                    <asp:Label ID="lbFundraisingDonorAmount" runat="server" Text="Fundraising Donor Amount">
                                                    </asp:Label>
                                                </td>
                                                <td>
                                                    <asp:TextBox ID="txtFundraisingDonorAmount" runat="server" Width="250">
                                                    </asp:TextBox>
                                                </td>
                                                <td>
                                                    <asp:Label ID="lbFundraisingDonationIncremental" runat="server" Text="Fundraising Donation Increment">
                                                    </asp:Label>
                                                </td>
                                                <td>
                                                    <asp:CheckBox ID="chkFundraisingDonationIncremental" runat="server" />
                                                </td>
                                            </tr>
                                        </table>
                                    </asp:Panel>
                                </div>
                            </ContentTemplate>
                        </asp:UpdatePanel>
                    </ContentTemplate>
                </asp:TabPanel>
                <asp:TabPanel ID="ContractTab" runat="server" HeaderText="Contract" Visible="false">
                    <ContentTemplate>
                        <asp:UpdatePanel ID="updatePanelContract" runat="server">
                            <ContentTemplate>
                                <asp:Panel ID="PanelContract" runat="server" GroupingText=" ">
                                    <table width="100%">
                                        <tr>
                                            <td>
                                                <asp:Label ID="lbContractOutcome" runat="server" Text="Contract Outcome">
                                                </asp:Label>
                                            </td>
                                            <td>
                                                <asp:ListBox ID="listContractOutcome" runat="server" Width="250px">
                                                </asp:ListBox>
                                            </td>
                                            <td>
                                                <asp:Label ID="lbContractObligation" runat="server" Text="Contract Obligation">
                                                </asp:Label>
                                            </td>
                                            <td>
                                                <asp:ListBox ID="listContractObligation" runat="server" Width="250">
                                                </asp:ListBox>
                                            </td>
                                        </tr>
                                        <tr>
                                            <td>
                                                <asp:Label ID="lbParticipation" runat="server" Text="Participation">
                                                </asp:Label>
                                            </td>
                                            <td>
                                                <asp:DropDownList ID="ddlParticipation" runat="server" Width="250px">
                                                </asp:DropDownList>
                                            </td>
                                            <td></td>
                                            <td></td>
                                        </tr>
                                    </table>
                                </asp:Panel>
                            </ContentTemplate>
                        </asp:UpdatePanel>
                    </ContentTemplate>
                </asp:TabPanel>
                </asp:TabContainer>        
            </ContentTemplate>
        </asp:UpdatePanel>
    </div>
</asp:Content>
